package org.dromara.mqtt.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "mqtt")
public class MqttProperties {
    private boolean enabled = false;
    private String broker = "tcp://localhost:1883";
    private String clientId = "mqtt_client";
    private String username;
    private String password;
    private String defaultTopic = "default/topic";
    private String cmdTopic = "elect_blanket/+/cmd";
    private String stateTopic = "elect_blanket/+/state";
}

